//
//  BaseVC.m
//  platformDemo
//
//  Created by Owen on 2020/6/9.
//  Copyright © 2020 Owen. All rights reserved.
//

#import "BaseVC.h"

@interface BaseVC ()

@end

@implementation BaseVC

- (instancetype)init{
    
    self = [super init];
    
    if (self) {
       
        //底层
        self.contentView = [[UIView alloc] init];
        
        //导航栏
        self.navBar = [[PTNavigationBar alloc] init];
        self.navBar.backgroundColor = [UIColor whiteColor];
        self.navBar.hidden = YES;
        
        //阴影
        self.shadowBgView = [[UIView alloc] init];
        self.shadowBgView.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.3];
        self.shadowBgView.hidden = YES;
    }
    
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    [self.view addSubview:self.contentView];
    
    [self.view addSubview:self.navBar];
    
    [self.view addSubview:self.shadowBgView];
    

}

- (void)viewWillAppear:(BOOL)animated{
    
    [super viewWillAppear:animated];
    
    self.contentView.frame = CGRectMake(0,
                                        0,
                                        WIDTH,
                                        HEIGHT);
    
}


/**隐藏导航头*/
- (void) hiddenNavBar{
    
    self.navBar.hidden = YES;
}
/**出现*/
- (void) showNavBar{
    
    self.navBar.hidden = NO;
}


//加载动画
- (void)startLoading{
    
    [SVProgressHUD show];
    
}
- (void)stopLoading{
    
    [SVProgressHUD dismiss];
}

//提示加载动画
- (void)startIndicatorLoading{
    
    
}
- (void)stopIndicatorLoading{
    
    
}

- (void)startIndicatorLoadingWithShadow{
    
    
}
- (void)stopIndicatorLoadingWithShadow{
    
    
}

//没有网络的提示
- (void)showNetErrorTipOfNormalVC{
    
    
}
- (void)hideNetErrorTipOfNormalVC{
    
    
}

- (void)showNetErrorTipOfMainVC{
    
    
}
- (void)hideNetErrorTipOfMainVC{
    
    
}

//没有返回数据的提示
- (void)showNoneDataTip{
    
    
}
- (void)hideNoneDataTip{
    
    
}

//提示
- (void) showSuccessTemporaryMes:(NSString *) text{
    
    
}
- (void) showFailTemporaryMes:(NSString *) text{
    
    
}

//提示框
- (void) showAlterViewWithText:(NSString *) text{
    
    
}

@end
